﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VK.Casemeet.Merchants;

namespace VK.Casemeet.Web.ShopAdmin
{
    public partial class Site : System.Web.UI.MasterPage
    {
        public string AccountName;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!AdminBLL.IsAdmin())
            {
                Response.Redirect("/ShopLogin.html");
            }
            else
            {
                AccountName = AdminBLL.GetSessionAdmin().Account;
            }
        }

        protected void butLeave_Click(object sender, EventArgs e)
        {
            AdminBLL.Leave();
            Response.Redirect("/ShopLogin.html");
        }
    }
}